package whf.framework.log.entity;

public class AuditHistoryDetail extends whf.framework.entity.AbstractEntity implements Logable {

	private static final long serialVersionUID = 0;

	private String propertyName;

	private String propertyType;

	private String oldValue;

	private String newValue;

	private AuditHistory auditHistory;

	// ---------- methods ----------
	public AuditHistoryDetail() {
		
	}
	
	public AuditHistoryDetail(String propertyTitle, String propertyName, String propertyType, String oldValue, String newValue) {
		this.setName(propertyTitle);
		this.propertyName = propertyName;
		this.propertyType = propertyType;
		this.oldValue = oldValue;
		this.newValue = newValue;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public String getPropertyName() {
		return this.propertyName;
	}

	public void setPropertyType(String propertyType) {
		this.propertyType = propertyType;
	}

	public String getPropertyType() {
		return this.propertyType;
	}

	public void setOldValue(String oldValue) {
		this.oldValue = oldValue;
	}

	public String getOldValue() {
		return this.oldValue;
	}

	public void setNewValue(String newValue) {
		this.newValue = newValue;
	}

	public String getNewValue() {
		return this.newValue;
	}

	public void setAuditHistory(AuditHistory auditHistory) {
		this.auditHistory = auditHistory;
	}

	public AuditHistory getAuditHistory() {
		return this.auditHistory;
	}

}